package com.douwong.student.model;

import java.io.Serializable;

public class PrepareResource implements Serializable,Comparable<PrepareResource>{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String attaKey;
	private String attaName;
	private String createtime;
	private int createdId;
	private String downLoadUrl;
	private String fileName;
	private int suffixType;//资源类型 图片 课件 
	private long  fileSize;
	private long totalSize;
	private String fileSuffix;
	private int id;
	private int prepareId;
	private String resName;
	private int sourceId;
	private int sourceType;
	private int status;
	private int subjectId;
	private String subjectName;
	private String updatedId;
	private String userName;
	private String filePath;//文件保存在本地的路径
	private long currentPro;//当前下载进度
	private boolean isLoading=false;
	private boolean isPause=false;
	private boolean isLoaded=false;
	private boolean isExist=false;
	private String attaSuffix;
	private int plObjectId;
	private int plPushType;
	private int scopeObjectId;
	private int scopePushType;

	public String getMcTitle() {
		return mcTitle;
	}

	public void setMcTitle(String mcTitle) {
		this.mcTitle = mcTitle;
	}

	private String mcTitle;//微课标题
	public String getAttaSuffix() {
		return attaSuffix;
	}
	public void setAttaSuffix(String attaSuffix) {
		this.attaSuffix = attaSuffix;
	}
	public int getPlObjectId() {
		return plObjectId;
	}
	public void setPlObjectId(int plObjectId) {
		this.plObjectId = plObjectId;
	}
	public int getPlPushType() {
		return plPushType;
	}
	public void setPlPushType(int plPushType) {
		this.plPushType = plPushType;
	}
	public int getScopeObjectId() {
		return scopeObjectId;
	}
	public void setScopeObjectId(int scopeObjectId) {
		this.scopeObjectId = scopeObjectId;
	}
	public int getScopePushType() {
		return scopePushType;
	}
	public void setScopePushType(int scopePushType) {
		this.scopePushType = scopePushType;
	}
	
	public boolean isLoading() {
		return isLoading;
	}
	public void setLoading(boolean isLoading) {
		this.isLoading = isLoading;
	}
	public boolean isPause() {
		return isPause;
	}
	public void setPause(boolean isPause) {
		this.isPause = isPause;
	}
	public boolean isLoaded() {
		return isLoaded;
	}
	public void setLoaded(boolean isLoaded) {
		this.isLoaded = isLoaded;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	public String getAttaKey() {
		return attaKey;
	}
	public void setAttaKey(String attaKey) {
		this.attaKey = attaKey;
	}
//	public String getAttaName() {
//		return attaName;
//	}
//	public void setAttaName(String attaName) {
//		this.attaName = attaName;
//	}
	public int getCreatedId() {
		return createdId;
	}
	public void setCreatedId(int createdId) {
		this.createdId = createdId;
	}
	public String getDownLoadUrl() {
		return downLoadUrl;
	}
	public void setDownLoadUrl(String downLoadUrl) {
		this.downLoadUrl = downLoadUrl;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public long getFileSize() {
		return fileSize;
	}
	public void setFileSize(long fileSize) {
		this.fileSize = fileSize;
	}
	public String getFileSuffix() {
		return fileSuffix;
	}
	public void setFileSuffix(String fileSuffix) {
		this.fileSuffix = fileSuffix;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getPrepareId() {
		return prepareId;
	}
	public void setPrepareId(int prepareId) {
		this.prepareId = prepareId;
	}
	public String getResName() {
		return resName;
	}
	public void setResName(String resName) {
		this.resName = resName;
	}
	public int getSourceId() {
		return sourceId;
	}
	public void setSourceId(int sourceId) {
		this.sourceId = sourceId;
	}
	public int getSourceType() {
		return sourceType;
	}
	public void setSourceType(int sourceType) {
		this.sourceType = sourceType;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public int getSubjectId() {
		return subjectId;
	}
	public void setSubjectId(int subjectId) {
		this.subjectId = subjectId;
	}
	public String getUpdatedId() {
		return updatedId;
	}
	public void setUpdatedId(String updatedId) {
		this.updatedId = updatedId;
	}
	public String getCreatetime() {
		return createtime;
	}
	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}
	public long getCurrentPro() {
		return currentPro;
	}
	public void setCurrentPro(long currentPro) {
		this.currentPro = currentPro;
	}
	public int getSuffixType() {
		return suffixType;
	}
	public void setSuffixType(int suffixType) {
		this.suffixType = suffixType;
	}
	public String getFilePath() {
		return filePath;
	}
	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}
	public boolean isExist() {
		return isExist;
	}
	public void setExist(boolean isExist) {
		this.isExist = isExist;
	}
	public long getTotalSize() {
		return totalSize;
	}
	public void setTotalSize(long totalSize) {
		this.totalSize = totalSize;
	}
	
	public String getSubjectName() {
		return subjectName;
	}
	public void setSubjectName(String subjectName) {
		this.subjectName = subjectName;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getAttaName() {
		return attaName;
	}
	public void setAttaName(String attaName) {
		this.attaName = attaName;
	}
	@Override
	public int compareTo(PrepareResource another) {
		if(another.getCreatetime().compareTo(this.createtime)>0){
			return 1;
		}else if(another.getCreatetime().compareTo(this.createtime)<0){
			return -1;
		}else{
			return 0;
		}
	}
}
